package br.com.ordersys.framework.restlayer;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class XMLServiceEnvelop implements IServiceEnvelop {
	private int status;
	private String errorMessage;

	@XmlElementWrapper(name = "warnings")
	@XmlElement(name = "item")
	private List<String> warnings;

	IResponseBody body;

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public List<String> getWarnings() {
		return warnings;
	}

	public void setWarnings(List<String> warnings) {
		this.warnings = warnings;
	}

	public IResponseBody getBody() {
		return body;
	}

	public void setBody(IResponseBody body) {
		this.body = body;
	}

	@Override
	public void setErrorMessage(String s) {
		this.errorMessage = s;
	}

	public String getErrorMessage() {
		return errorMessage;
	}
}
